package com.zzyl.nursing.task;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

//@Component
public class HelloTask {
    @Scheduled(cron = "0/5 * * * * ? ")
    public void die() {
        System.out.println(LocalDateTime.now() + ":又死了9个人");
    }
}
